package com.fmdj.mis.api.feign;

import com.fmdj.common.util.CommonResult;
import com.fmdj.mis.api.controller.form.DeleteVoucherByIdsForm;
import com.fmdj.mis.api.controller.form.InsertVoucherForm;
import com.fmdj.mis.api.controller.form.SearchVoucherByPageForm;
import com.fmdj.mis.api.controller.form.UpdateVoucherStatusForm;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(name = "fmdj-vhr")
public interface VhrServiceApi {

    @PostMapping("/voucher/insertVoucher")
    public CommonResult insertVoucher(@RequestBody @Valid InsertVoucherForm form);

    @PostMapping("/voucher/searchVoucherByPage")
    public CommonResult searchVoucherByPage(@RequestBody @Valid SearchVoucherByPageForm form);

    @PostMapping("/voucher/updateVoucherStatus")
    public CommonResult updateVoucherStatus(@RequestBody @Valid UpdateVoucherStatusForm form);

    @PostMapping("/voucher/deleteVoucherByIds")
    public CommonResult deleteVoucherByIds(@RequestBody @Valid DeleteVoucherByIdsForm form);

}
